package com.app.controller.supermarket;
import com.app.mapper.supermarket.SkillMapper;
import com.app.model.supermarket.SkillModel;
import com.app.util.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Description:
 * @Date: 2022/11/13 17:07
 */
@RestController
@RequestMapping("api/skill")
public class SkillController {
    @Autowired
    private SkillMapper skillMapper;
    @ApiOperation("获取技能标签列表")
    @RequestMapping(value = "/getSkill", method = RequestMethod.GET)
    public Result<Object> getSkillList(Integer sid) {
        List<SkillModel> skills = skillMapper.selectList(null);
        return Result.success(skills);
    }
}
